
package org.sopt.dev.ImgKnight.agent.RobotsExclusion;

public abstract class RobotsTxtCacheEngine<K, V> {
	
	protected int limitSize;
	
	protected int totalAcces;
	
	protected int hitRate;
	
	protected int missrate;
	
	public RobotsTxtCacheEngine(int limitSize) {
		this.limitSize = limitSize;
		totalAcces 	= 0;
		hitRate 	= 0;
		missrate 	= 0;
	}
	
	public int getLimitSize() {
		return limitSize;
	}
	
	public int getTotalAcces() {
		return totalAcces;
	}

	public int getHitRate() {
		return hitRate;
	}

	public int getMissrate() {
		return missrate;
	}
	
	public abstract void clear();
	
	public abstract int size();
	
	public abstract V put(K key, V value);
	
	public abstract V get(K key);
	
}
